package com.dyc.caradvertisting.bean.req;

import com.dyc.caradvertisting.comm.AES256Encryption;
import com.dyc.caradvertisting.constants.Constant;

/**
 * Created by niejiahuan on 15/1/1.
 * 请求bean
 */
public class RequestBean {
    public RequestBean() {
    }

    public RequestBean(int act, String param) {
        this.act = act;
        this.param = param;
        setStrtime(System.currentTimeMillis());
        setSign(AES256Encryption.md5(getAct()+getParam()+ Constant.APPKEY+getStrtime()));
    }

    private int act;//接口号
    private String param;//参数json
    private String sign;//签名
    private long strtime;//时间戳

    public int getAct() {
        return act;
    }

    public void setAct(int act) {
        this.act = act;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public long getStrtime() {
        return strtime;
    }

    public void setStrtime(long strtime) {
        this.strtime = strtime;
    }
}
